package com.ruoyi.testDeal.service.impl;

import com.ruoyi.testDeal.domain.equInfo.JkDshshsjDjInfo;
import com.ruoyi.testDeal.mapper.JkDshshsjDjInfoMapper;
import com.ruoyi.testDeal.service.IJkDshshsjDjInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 金属非金属带式输送机电动机参数Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-10
 */
@Service
public class JkDshshsjDjInfoServiceImpl implements IJkDshshsjDjInfoService
{
    @Autowired
    private JkDshshsjDjInfoMapper jkDshshsjDjInfoMapper;

    /**
     * 查询金属非金属带式输送机电动机参数
     * 
     * @param dshshsjDjid 金属非金属带式输送机电动机参数主键
     * @return 金属非金属带式输送机电动机参数
     */
    @Override
    public JkDshshsjDjInfo selectJkDshshsjDjInfoByDshshsjDjid(Long dshshsjDjid)
    {
        return jkDshshsjDjInfoMapper.selectJkDshshsjDjInfoByDshshsjDjid(dshshsjDjid);
    }

    /**
     * 查询金属非金属带式输送机电动机参数列表
     * 
     * @param jkDshshsjDjInfo 金属非金属带式输送机电动机参数
     * @return 金属非金属带式输送机电动机参数
     */
    @Override
    public List<JkDshshsjDjInfo> selectJkDshshsjDjInfoList(JkDshshsjDjInfo jkDshshsjDjInfo)
    {
        return jkDshshsjDjInfoMapper.selectJkDshshsjDjInfoList(jkDshshsjDjInfo);
    }

    /**
     * 新增金属非金属带式输送机电动机参数
     * 
     * @param jkDshshsjDjInfo 金属非金属带式输送机电动机参数
     * @return 结果
     */
    @Override
    public int insertJkDshshsjDjInfo(JkDshshsjDjInfo jkDshshsjDjInfo)
    {
        return jkDshshsjDjInfoMapper.insertJkDshshsjDjInfo(jkDshshsjDjInfo);
    }

    /**
     * 修改金属非金属带式输送机电动机参数
     * 
     * @param jkDshshsjDjInfo 金属非金属带式输送机电动机参数
     * @return 结果
     */
    @Override
    public int updateJkDshshsjDjInfo(JkDshshsjDjInfo jkDshshsjDjInfo)
    {
        return jkDshshsjDjInfoMapper.updateJkDshshsjDjInfo(jkDshshsjDjInfo);
    }

    /**
     * 批量删除金属非金属带式输送机电动机参数
     * 
     * @param dshshsjDjids 需要删除的金属非金属带式输送机电动机参数主键
     * @return 结果
     */
    @Override
    public int deleteJkDshshsjDjInfoByDshshsjDjids(Long[] dshshsjDjids)
    {
        return jkDshshsjDjInfoMapper.deleteJkDshshsjDjInfoByDshshsjDjids(dshshsjDjids);
    }

    /**
     * 删除金属非金属带式输送机电动机参数信息
     * 
     * @param dshshsjDjid 金属非金属带式输送机电动机参数主键
     * @return 结果
     */
    @Override
    public int deleteJkDshshsjDjInfoByDshshsjDjid(Long dshshsjDjid)
    {
        return jkDshshsjDjInfoMapper.deleteJkDshshsjDjInfoByDshshsjDjid(dshshsjDjid);
    }

    /**
     * 删除输送机数据
     *
     * @param reportNum
     */
    @Override
    public int deleteJkDshshsjDjInfoByReportNum(String reportNum) {
        return jkDshshsjDjInfoMapper.deleteJkDshshsjDjInfoByReportNum(reportNum);
    }

    /**
     * 根据报告编号查询
     *
     * @param reportNum
     */
    @Override
    public List<JkDshshsjDjInfo> selectJkDshshsjDjInfoByReportNum(String reportNum) {
        return jkDshshsjDjInfoMapper.selectJkDshshsjDjInfoByReportNum(reportNum);
    }

    /**
     * 批量新增电机数据
     *
     * @param jkDshshsjDjInfos
     */
    @Override
    public int batchJkDshshsjDjInfo(List<JkDshshsjDjInfo> jkDshshsjDjInfos) {
        return jkDshshsjDjInfoMapper.batchJkDshshsjDjInfo(jkDshshsjDjInfos);
    }
}
